import { request } from "@/utils/http";
import type {getHosListsearchParamsReqType,hospitalListReqReturnType} from '@api/hospital/model/hospitalListTypes'

//1.获取医院列表的请求
export const getHosListRequest = (page:number,limit:number,searchParams:getHosListsearchParamsReqType)=>{
  return request.get<any,hospitalListReqReturnType>(`/admin/hosp/hospital/${page}/${limit}`,{
    params:searchParams
  })
}

